import request from "../utils/request";

/*
*轮播图列表
* */
export const slides = (params:any) => {
    return request({
        url: '/api/admin/slides',
        method: 'GET',
        params
    })
}

/*
*新建轮播图
* */
export const addSlides = (data:any) => {
    return request({
        url: '/api/admin/slides',
        method: 'POST',
        data
    })
}